<?php
$config = array();
//database settings
$config['db']['dbname'] = 'z_haotu';
$config['db']['username'] = 'ghostwei';
$config['db']['password'] = '123456';

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['charset'] = 'utf8';
$config['db']['type'] = 'pdo_mysql';
//table prefix
$config['db']['table_prefix'] = '';


$config['db']['profiler'] = true; //open database profiler use to debug.
$config['db']['options'] = array();
//$config['db']['driver_options'] = array(PDO::ATTR_PERSISTENT => true);

//程序默认时区
$config['timezone'] = 'UTC';

//模板目录
$config['view']['template'] = null;

//是否显示错误信息
$config['front']['throw_exceptions'] = false;

$config['front']['base_url'] = null;
$config['front']['base_controller'] = null;

//SESSION 会话设置
$config['session']['db_handler'] = true;

//$config['session']['cookie_domain'] = 'hookbag.com'; //域名
//$config['session']['cookie_lifetime'] = 10;
$config['session']['cookie_path'] = '/';
$config['session']['cookie_secure'] = 0;
$config['session']['remember_me_seconds'] = 3600 * 24 * 30; //记住我保存时间(COOKIE)

//$config['session']['gc_probability'] = 100; //更新机率 100是百分之丄1�7
//$config['session']['gc_divisor'] = 100;
//$config['session']['gc_maxlifetime'] = 10 * 60; //session保存的有效时间

$config['session']['cache_expire'] = 10;
